package com.ls.lserp.modules.inventoryControl.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.ls.lserp.common.persistence.DataEntity;

/**
 * @ClassName: InventoryEntity
 * @Description: 库存预警实体类
 * 
 * @author 于辉
 * @date 2017年03月13日
 *
 */

public class InventoryEntity extends DataEntity<InventoryEntity> {

	private static final long serialVersionUID = 1L;
	
	private List<InventoryEntity> inventoryList;
	// 供货商list
	private OginzationEntity oginzationEntity;
	// 原辅料中文名称
	private String materialNameCn;
	// 原辅料代码
	private String materialCode;
	// 幅宽
	private String materialSpec;
	// 规格单位CD
	private String materialSpecUnitCd;
	// 原辅料颜色
	private String materialColor;
	// 成分
	private String materialComposition;
	// 原辅料业务类别CD(1:定制,2:订单,9:全部)
	private String materialUseType;
	// 原辅料类别CD
	private String materialTypeCd;
	// 原辅料等级
	private String materialLevel;
	// 原辅料克重
	private String materialGramWeight;
	// 库存数量
	private int materialQuantity;
	// 原辅料预警数量
	private int materialAlertQuantity;
	// 预警日期
	private Date createDateTime;
	// 日期
	private Date dateFrom;
	// 日期
	private Date dateTo;
	// 原辅料图片
	private String uploadFile;
	// 状态区分
	private String materialStatus;
	// 业务类别
	private String businessType;
	// 面辅料ID
	private int materialId;
	//预警ID
	private int alertId;
	// 退税
	private BigDecimal purchaseTaxRebate;
	// 采购单价
	private BigDecimal purchaseUnitPrice;
	// 采购金额
	private BigDecimal purchaseTotalAmount;
	//采购数量
	private BigDecimal purchaseReserveQuantity;
	// 供货商ID
	private int ognizationId;
	// 采购时间
	private Date updateDateTime;
	// 供货商名称
	private String supplierNameCn;
	// 核料、预警区分
	private String materialReserverKbn;
	
	/**
	 * @return the materialReserverKbn
	 */
	public String getMaterialReserverKbn() {
		return materialReserverKbn;
	}

	/**
	 * @param materialReserverKbn the materialReserverKbn to set
	 */
	public void setMaterialReserverKbn(String materialReserverKbn) {
		this.materialReserverKbn = materialReserverKbn;
	}

	/**
	 * @return the alertId
	 */
	public int getAlertId() {
		return alertId;
	}

	/**
	 * @param alertId the alertId to set
	 */
	public void setAlertId(int alertId) {
		this.alertId = alertId;
	}

	public List<InventoryEntity> getInventoryList() {
		return inventoryList;
	}

	public void setInventoryList(List<InventoryEntity> inventoryList) {
		this.inventoryList = inventoryList;
	}

	public String getMaterialNameCn() {
		return materialNameCn;
	}

	public void setMaterialNameCn(String materialNameCn) {
		this.materialNameCn = materialNameCn;
	}

	public String getMaterialCode() {
		return materialCode;
	}

	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}

	public String getMaterialSpec() {
		return materialSpec;
	}

	public void setMaterialSpec(String materialSpec) {
		this.materialSpec = materialSpec;
	}

	public String getMaterialSpecUnitCd() {
		return materialSpecUnitCd;
	}

	public void setMaterialSpecUnitCd(String materialSpecUnitCd) {
		this.materialSpecUnitCd = materialSpecUnitCd;
	}

	public String getMaterialColor() {
		return materialColor;
	}

	public void setMaterialColor(String materialColor) {
		this.materialColor = materialColor;
	}

	public String getMaterialComposition() {
		return materialComposition;
	}

	public void setMaterialComposition(String materialComposition) {
		this.materialComposition = materialComposition;
	}

	public String getMaterialUseType() {
		return materialUseType;
	}

	public void setMaterialUseType(String materialUseType) {
		this.materialUseType = materialUseType;
	}

	public String getMaterialTypeCd() {
		return materialTypeCd;
	}

	public void setMaterialTypeCd(String materialTypeCd) {
		this.materialTypeCd = materialTypeCd;
	}

	public String getMaterialLevel() {
		return materialLevel;
	}

	public void setMaterialLevel(String materialLevel) {
		this.materialLevel = materialLevel;
	}

	public String getMaterialGramWeight() {
		return materialGramWeight;
	}

	public void setMaterialGramWeight(String materialGramWeight) {
		this.materialGramWeight = materialGramWeight;
	}

	public int getMaterialQuantity() {
		return materialQuantity;
	}

	public void setMaterialQuantity(int materialQuantity) {
		this.materialQuantity = materialQuantity;
	}

	public int getMaterialAlertQuantity() {
		return materialAlertQuantity;
	}

	public void setMaterialAlertQuantity(int materialAlertQuantity) {
		this.materialAlertQuantity = materialAlertQuantity;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

	public Date getDateFrom() {
		return dateFrom;
	}

	public void setDateFrom(Date dateFrom) {
		this.dateFrom = dateFrom;
	}

	public Date getDateTo() {
		return dateTo;
	}

	public void setDateTo(Date dateTo) {
		this.dateTo = dateTo;
	}

	public String getUploadFile() {
		return uploadFile;
	}

	public void setUploadFile(String uploadFile) {
		this.uploadFile = uploadFile;
	}

	public String getMaterialStatus() {
		return materialStatus;
	}

	public void setMaterialStatus(String materialStatus) {
		this.materialStatus = materialStatus;
	}

	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}

	public int getMaterialId() {
		return materialId;
	}

	public void setMaterialId(int materialId) {
		this.materialId = materialId;
	}

	public OginzationEntity getOginzationEntity() {
		return oginzationEntity;
	}

	public void setOginzationEntity(OginzationEntity oginzationEntity) {
		this.oginzationEntity = oginzationEntity;
	}

	public BigDecimal getPurchaseTaxRebate() {
		return purchaseTaxRebate;
	}

	public void setPurchaseTaxRebate(BigDecimal purchaseTaxRebate) {
		this.purchaseTaxRebate = purchaseTaxRebate.setScale(3, BigDecimal.ROUND_HALF_UP);
	}

	public BigDecimal getPurchaseUnitPrice() {
		return purchaseUnitPrice;
	}

	public void setPurchaseUnitPrice(BigDecimal purchaseUnitPrice) {
		this.purchaseUnitPrice = purchaseUnitPrice.setScale(3, BigDecimal.ROUND_HALF_UP);
	}

	public BigDecimal getPurchaseTotalAmount() {
		return purchaseTotalAmount;
	}

	public void setPurchaseTotalAmount(BigDecimal purchaseTotalAmount) {
		this.purchaseTotalAmount = purchaseTotalAmount.setScale(3, BigDecimal.ROUND_HALF_UP);
	}
	
	/**
	 * @return the purchaseReserveQuantity
	 */
	public BigDecimal getPurchaseReserveQuantity() {
		return purchaseReserveQuantity;
	}

	/**
	 * @param purchaseReserveQuantity the purchaseReserveQuantity to set
	 */
	public void setPurchaseReserveQuantity(BigDecimal purchaseReserveQuantity) {
		this.purchaseReserveQuantity = purchaseReserveQuantity;
	}

	public int getOgnizationId() {
		return ognizationId;
	}

	public void setOgnizationId(int ognizationId) {
		this.ognizationId = ognizationId;
	}

	public Date getUpdateDateTime() {
		return updateDateTime;
	}

	public void setUpdateDateTime(Date updateDateTime) {
		this.updateDateTime = updateDateTime;
	}

	public String getSupplierNameCn() {
		return supplierNameCn;
	}

	public void setSupplierNameCn(String supplierNameCn) {
		this.supplierNameCn = supplierNameCn;
	}

}